package com.admin.vo.upload;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@ApiModel("导入实习总代u8编码错误的类型下的U8编码集合")
@Data
@EqualsAndHashCode(callSuper=true)
public class UploadErrorResultInfo extends UploadResultInfo{

    @ApiModelProperty(value = "u8编码不存在")
    private List<String> u8CodeNotExist;

    @ApiModelProperty(value = "u8编码重复")
    private List<String> u8CodeRepetition;

    @ApiModelProperty(value = "导入数据错误")
    private List<String> u8CodeDataError;


    public static UploadErrorResultInfo getInstance(){
        UploadErrorResultInfo resultInfo = new UploadErrorResultInfo();
        resultInfo.setAddCount(0);
        resultInfo.setErrorCount(0);
        resultInfo.setUpdateCount(0);
        resultInfo.setSuccessCount(0);
        resultInfo.setU8CodeDataError(new ArrayList<String>());
        resultInfo.setU8CodeNotExist(new ArrayList<String>());
        resultInfo.setU8CodeRepetition(new ArrayList<String>());
        return resultInfo;
    }
}
